class Person1{
    public String name;
    public int age;
    public Person1(String name, int age){
        this.name = name;
        this.age = age;
    }
}
class C {
    public static void main(String[] args) {
        Person1 person = new Person1("zhangsan",10);
        Person1 person1 = new Person1("zhangsan",10);
        System.out.println(person.equals(person1));
    }
}
public class Test2 {
    public static void main(String[] args) {
        String a = "123";
        String b = "123";
        System.out.println(a);
        System.out.println(b);
        System.out.println(a == b);
    }
    public static void main1(String[] args) {
        int a = 10;
        int b = 20;
        System.out.println(a == b);
    }
}
